package com.example.spring.bean;

import java.util.Date;

// 简单值类型测试
public class SimpleValueType {
    private int age1;
    private Integer age2;

    private boolean flag1;
    private Boolean flag2;

    private char c1;
    private Character c2;

    private Season season;

    private String username;

    private Class aclass;

    private Date birth;

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    public void setAge1(int age1) {
        this.age1 = age1;
    }

    public void setAge2(Integer age2) {
        this.age2 = age2;
    }

    public void setFlag1(boolean flag1) {
        this.flag1 = flag1;
    }

    public void setFlag2(Boolean flag2) {
        this.flag2 = flag2;
    }

    public void setC1(char c1) {
        this.c1 = c1;
    }

    public void setC2(Character c2) {
        this.c2 = c2;
    }

    public void setSeason(Season season) {
        this.season = season;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setAclass(Class aclass) {
        this.aclass = aclass;
    }

    @Override
    public String toString() {
        return "SimpleValueType{" +
                "age1=" + age1 +
                ", age2=" + age2 +
                ", flag1=" + flag1 +
                ", flag2=" + flag2 +
                ", c1=" + c1 +
                ", c2=" + c2 +
                ", season=" + season +
                ", username='" + username + '\'' +
                ", aclass=" + aclass +
                ", birth=" + birth +
                '}';
    }
}
